package kandao.model_design.create.factory_method.factory;

import kandao.model_design.create.factory_method.buttons.Button;

/**
 * @author hll
 * 2023/5/4
 * 描述 基础创建者
 **/
public abstract class Dialog {
    public void renderWindow() {
        // ... other code ...

        Button okButton = createButton();
        okButton.render();
    }

    /**
     * Subclasses will override this method in order to create specific button
     * objects.
     */
    public abstract Button createButton();
}
